|
ARD2
1.00 for Rev B. Hardware
Airbag Reference Demonstrator using MPC5604P
|
Global variables linked to the ARD2 application independent of all states. More...
Functions | |
| void | vfnSMInitAppGlobals (void) |
| Initializes all Application global variables to their default values. Should be called once at the SM start-up. | |
Variables | |
| const uint16_t | cau16PSI5CrashThresholds [] |
| const uint16_t | cau16CACrashThresholds [] |
| const uint8_t | cau8SatelliteDetectionDirection [] |
| const uint8_t | cau8SatToSquibs [] |
| const uint8_t | cu8SizeOfSatToSquibs = sizeof(cau8SatToSquibs) |
| vuint16_t | gau16RawAccels [SM_ALL_ACCEL_SIZE] |
| vuint32_t | gu32SMCycleStartTime |
| vuint8_t | gu8GUIStateFirstRun |
Global variables linked to the ARD2 application independent of all states.
Copyright (C) 2011 Freescale Semiconductor Freescale Confidential Proprietary
History:
| void vfnSMInitAppGlobals | ( | void | ) |
Initializes all Application global variables to their default values. Should be called once at the SM start-up.
| None. |
| const uint16_t cau16CACrashThresholds[] |
{
CA_X_THRESHOLD, CA_Y_THRESHOLD
}
Chart showing thresholds per Central Accelerometer
| const uint16_t cau16PSI5CrashThresholds[] |
{
PSI_SAT1_THRESHOLD,
CLEAR, CLEAR,
PSI_SAT2_THRESHOLD,
CLEAR, CLEAR,
PSI_SAT3_THRESHOLD,
CLEAR, CLEAR,
PSI_SAT4_THRESHOLD,
CLEAR, CLEAR
}
Chart showing thresholds per PSI5 satellite
| const uint8_t cau8SatelliteDetectionDirection[] |
{
CA_CRASH_X,
CLEAR, CLEAR,
CA_CRASH_X,
CLEAR, CLEAR,
CA_CRASH_Y,
CLEAR, CLEAR,
CA_CRASH_Y,
CLEAR, CLEAR,
}
Chart correlating PSI5 satellites vs. Central accelerometer direction
| const uint8_t cau8SatToSquibs[] |
{
SAT_CH(0u, 0u), SQUIB_CH(0u),
SAT_CH(0u, 0u), SQUIB_CH(1u),
SAT_CH(1u, 0u), SQUIB_CH(3u),
SAT_CH(1u, 0u), SQUIB_CH(4u),
SAT_CH(2u, 0u), SQUIB_CH(6u),
SAT_CH(3u, 0u), SQUIB_CH(9u),
}
Chart correlating squibs to confirmed satellites
| const uint8_t cu8SizeOfSatToSquibs = sizeof(cau8SatToSquibs) |
Size of cau8SatToSquibs
| vuint16_t gau16RawAccels[SM_ALL_ACCEL_SIZE] |
This array holds raw acceleration results for all satellites and sensors
| vuint32_t gu32SMCycleStartTime |
This variable is used to remember when the last SM cycle started. Should be updated in the Acquisition phase only.
| vuint8_t gu8GUIStateFirstRun |
This global remembers if we've been through the GUI state before